package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 学习海报对象 sys_learning_poster
 * 
 * @author ruoyi
 * @date 2022-04-08
 */
public class SysLearningPoster extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 海报ID */
    private Long posterId;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long areaId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 视频url */
    @Excel(name = "视频url")
    private String image;

    /** 封面url */
    @Excel(name = "封面url")
    private String thumbImage;

    /** 视频类型 */
    @Excel(name = "视频类型")
    private String type;

    /** 发布人 */
    @Excel(name = "发布人")
    private Long author;
    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publisherDate;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 排序，值越小越靠前 */
    @Excel(name = "排序，值越小越靠前")
    private Integer sort;

    public void setPosterId(Long posterId) 
    {
        this.posterId = posterId;
    }

    public Long getPosterId() 
    {
        return posterId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setThumbImage(String thumbImage) 
    {
        this.thumbImage = thumbImage;
    }

    public String getThumbImage() 
    {
        return thumbImage;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAuthor(Long author) 
    {
        this.author = author;
    }

    public Long getAuthor() 
    {
        return author;
    }
    public void setViews(Long views) 
    {
        this.views = views;
    }

    public Date getPublisherDate() {
        return publisherDate;
    }

    public void setPublisherDate(Date publisherDate) {
        this.publisherDate = publisherDate;
    }

    public Long getViews()
    {
        return views;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("posterId", getPosterId())
            .append("areaId", getAreaId())
            .append("title", getTitle())
            .append("image", getImage())
            .append("thumbImage", getThumbImage())
            .append("type", getType())
            .append("author", getAuthor())
            .append("views", getViews())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("sort", getSort())
            .toString();
    }
}
